package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._04代理模式._1基本代码;

/**
 * @ClassName Proxy
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/11 12:54 PM
 * @Version 1.0
 */
public class Proxy implements ISubject{
    private ISubject iSubject;

    public Proxy() {
        this.iSubject = new RealSubject();
    }

    public void request() {
        System.out.println("先代理一下");
        this.iSubject.request();
    }
}
